/**
 * 基础组件demo
 */

import { lazyLoadView } from './routes';
import TemplateView from '../views/template';

export default {
  path: '/base-component',
  name: 'base-component',
  component: TemplateView,
  redirect: '/base-component/tree-select',
  children: [
    {
      path: '/base-component/tree-select',
      name: 'baseComponentTreeSelect',
      component: () => lazyLoadView(import('../views/base-component/tree-select')),
      meta: {
        label: '树下拉',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '树下拉', path: '' }],
      },
    },
    {
      path: '/base-component/virtual-table',
      name: 'baseComponentVirtualTable',
      component: () => lazyLoadView(import('../views/base-component/virtual-table/index.vue')),
      meta: {
        label: '虚拟表格',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '虚拟表格', path: '' }],
      },
    },
    {
      path: '/base-component/inside-drawer',
      name: 'baseComponentInsideDrawer',
      component: () => lazyLoadView(import('../views/base-component/inside-drawer')),
      meta: {
        label: '内嵌抽屉',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '内嵌抽屉', path: '' }],
      },
    },
    {
      path: '/base-component/org-tree',
      name: 'baseComponentOrgTree',
      component: () => lazyLoadView(import('../views/base-component/org-tree')),
      meta: {
        label: '树状结构图',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '树状结构图', path: '' }],
      },
    },
    {
      path: '/base-component/editor',
      name: 'baseComponentEditor',
      component: () => lazyLoadView(import('../views/base-component/editor')),
      meta: {
        label: '富文本编辑器',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '富文本编辑器', path: '' }],
      },
    },
    {
      path: '/base-component/time-picker',
      name: 'baseComponentTimePicker',
      component: () => lazyLoadView(import('../views/base-component/time-picker')),
      meta: {
        label: '日期时间选择器',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '日期时间选择器', path: '' }],
      },
    },
    {
      path: '/base-component/countdown',
      name: 'baseComponentCountdown',
      component: () => lazyLoadView(import('../views/base-component/countdown')),
      meta: {
        label: '倒计时',
        icon: '',
        breadcrumb: [{ label: '基础组件', path: '/base-component' }, { label: '倒计时', path: '' }],
      },
    },
  ],
  meta: {
    isAuth: true,
    label: '基础组件',
    icon: 'el-icon-s-grid',
    breadcrumb: [{ label: '基础组件', path: '/base-component' }],
  },
};
